package com.rmi;
/**
 * ActivatableHelloImpl.java
 * 	An rmi server which implements Hello remote interface
 * @author Yoon Kyung Koo (yoonforh@moon.daewoo.co.kr)
 * @version 1.0 1999/05/09
 */

import java.rmi.*;
import java.rmi.activation.*;

public class ActivatableHelloImpl extends Activatable
				implements Hello {
	/**
	 * a special constructor of which want to be activatable
	 * Be sure to make public 'cause this constructor will be called by 
	 * Java VM
	 */
	public ActivatableHelloImpl (ActivationID id, MarshalledObject data)
				throws RemoteException {
		super(id, 0/*anonymous port */);
	}

	/**
	 * implements Hello interface methods
	 * (NOTE: all interface methods are implicitly public)
	 */
	public String hello() throws RemoteException {
	        return "Hello, Remotely Activatable World!";
	}

}